﻿// -----------------------------------------------------------------------
// <copyright file="RankedPictue.cs" company="Hewlett-Packard">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Ex3.Logic
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using FacebookWrapper.ObjectModel;

    /// <summary>
    /// Represents a photo as it is saved in a file
    /// </summary>
    public class RankedPhoto
    {
        public string ID { get; private set; }

        public string URL { get; private set; }

        public Photo FacebookPhoto { get; set; }

        public Common.Stars RankedStars { get; set; }

        public RankedPhoto(Photo i_Photo, Common.Stars i_NumberOfStars)
        {
            this.URL = i_Photo.URL;
            this.ID = i_Photo.Id;
            this.RankedStars = (Common.Stars) i_NumberOfStars;
            this.FacebookPhoto = null;
        }

        public RankedPhoto(string i_URL, string i_ID, Common.Stars i_NumberOfStars)
        {
            this.URL = i_URL;
            this.ID = i_ID;
            this.RankedStars = (Common.Stars)i_NumberOfStars;
            this.FacebookPhoto = null;
        }

        public RankedPhoto(string i_URL)
        {
            this.URL = i_URL;
            this.ID = string.Empty;
            this.RankedStars = Common.Stars.NONE;
            this.FacebookPhoto = null;
        }
    }
}
